package vistas;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.WindowConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
@SuppressWarnings("serial")
public class FrmEntrar extends javax.swing.JFrame {

	private JLabel lblSistema;
	private JLabel lblLiga;
	private JButton btnEntrar;
	private JButton btnSalir;


	/**
	* Auto-generated main method to display this JFrame
	*/
		
	public FrmEntrar() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				lblSistema = new JLabel();
				getContentPane().add(lblSistema);
				lblSistema.setText("Sistema de Control");
				lblSistema.setBounds(50, 60, 600, 90);
				lblSistema.setFont(new java.awt.Font("Dialog",1,32));
				lblSistema.setHorizontalAlignment(SwingConstants.CENTER);
			}
			{
				lblLiga = new JLabel();
				getContentPane().add(lblLiga);
				lblLiga.setText("Liga de Fútbol Profesional");
				lblLiga.setBounds(50, 140, 600, 90);
				lblLiga.setFont(new java.awt.Font("Dialog",1,36));
				lblLiga.setHorizontalAlignment(SwingConstants.CENTER);
			}
			{
				btnEntrar = new JButton();
				getContentPane().add(btnEntrar);
				btnEntrar.setText("Entrar");
				btnEntrar.setBounds(150, 300, 140, 50);
			}
			{
				btnSalir = new JButton();
				getContentPane().add(btnSalir);
				btnSalir.setText("Salir");
				btnSalir.setBounds(410, 300, 140, 50);
			}		
			pack();
			setSize(700, 500);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public void agregarListener(ActionListener accion){
		btnEntrar.addActionListener(accion);
		btnSalir.addActionListener(accion);
	}

}
